<?php

/**
 * 优惠券
 * Class VoucherController
 */
class UserController extends BaseController
{
    use \app\library\traits\Restful;

    public function init(){
        parent::init();
        $this->checkLogin();
    }

    /**
     * 获取用户信息
     */
    public function read()
    {
        $list = (new UserInfoModel())->find($this->user_id);
        return $this->returnSuccess($list);
    }

}
